package com.leyou.order.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Data
@Table(name = "tb_order")
public class Order {

    @Id
    private Long orderId;//id
    private Long totalPay; //总金额
    private Long actualPay;//实付金额
    private Integer paymentType; //支付类型 1 在线支付  2 货到付款

    private String promotionIds; //参与促销活动的id
    private Long postFee =0L; //邮费
    private Date createTime; //创建时间
    private String shippingName;//物流名称
    private String shippingCode;//物流单号
    private Long userId;//用户id
    private String buyerMessage;//买家留言
    private String buyerNick;//买家昵称
    private Boolean buyerRate; //买家是否评论
    private String receiver;//收货人全名
    private String receiverMobile;//移动电话
    private String receiverState ;//省份

    private String receiverCity; //城市
    private String receiverDistrict; //区县
    private String receiverAddress;//收货地址
    private String receiverZip;//邮编
    private Integer invoiceType =0;//发票类型  0 无发票 1普通发票  2 电子发票 3 增值税发票
    private Integer sourceType=1;//订单来源  1 app   2 pc  3 M端   4微信端
    @Transient
    private  OrderStatus orderStatus;

    @Transient
    private List<OrderDetail> orderDetails;


}
